<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* = */
        var a = 10;
        var b = 3;
        /* += */
        a += b; //a=a+b   
        console.log(a,b);     
        /* -= */
        a-=b;   //a = a - b;
        console.log(a,b);

        /* *= */
        a*=b;   //a = a * b;
        console.log(a,b);

        /* /= */
        a /= b; //a = a / b;
        console.log(a,b);

        /* %= */
        a %= b; // a = a % b;
        console.log(a,b);

        var x = "10"
        var y = 10;
        var z = "文渊"
        var w = "10"
        /* == */
        console.log(x == y);    //判断值
        /* === */
        console.log(x === y);   //判断值和类型

        /* a != b */
        console.log(x != z);//true
        console.log(x != y);//false

        /* a !== b   相当于   !(a === b)*/
        console.log(x !== y);//true
        console.log(x !== z);//true
        console.log(x !== w);//false
    </script>
</body>
</html>